/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BLL;

import DAL.ProductDAL;
import utils.JAXBUtil;
import xmlobject.DTO.Products.Products;

/**
 *
 * @author kenisk
 */
public class ProductBLL {
    public void ProductsToXML(String xmlFilePath){
        ProductDAL dal = new ProductDAL();    
        Products product = new Products();
        product.getProduct().addAll(dal.getAllProduct().getProduct());
        JAXBUtil.marshal(xmlFilePath, product);
    }
}
